<template>
	<view class="list" @click="onClick">
		<image class="list-img" :src="img"></image>
		<view class="list-box">
			<view class="list-tit">{{title}}</view>
			<view class="list-time">{{time}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			img: {
				type: String,
				default: ''
			},
			title: {
				type: String,
				default: ''
			},
			time: {
				type: String,
				default: ''
			},
			statu: {
				type: String,
				default: ''
			}
		},
		methods: {
			onClick() {
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.list {
		display: flex;
		.list-img {
			width: 270rpx;
			height: 170rpx;
			border-radius: 5rpx;
			margin-right: 30rpx;
		}

		.list-box {
			display: flex;
			flex-direction: column;
			width: calc(100% - 300rpx);
		
			.list-tit {
				height: 100rpx;
				line-height: 50rpx;
				font-size: 32rpx;
				font-weight: 500;
				color: #333333;
				margin-bottom: 20rpx;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-line-clamp: 2;
				-webkit-box-orient: vertical;
				display: -moz-box;
				-moz-line-clamp: 2;
				-moz-box-orient: vertical;
			}
		
			.list-time {
				height: 50rpx;
				line-height: 50rpx;
				font-size: 24rpx;
				font-weight: 500;
				color: #999999;
			}
		}
	}
	// .list:last-of-type{
	// 	border-bottom: none;
	// }
</style>
